package com.aduerr.v1shouyin.mvp.activity;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.aduerr.v1shouyin.R;


/**
 * @author HI
 * @email dev1024@foxmail.com
 * @time 2019/4/15 18:32
 * @change
 * @chang time
 * @class describe
 */

public class PreAuthoFailActivity extends AppCompatActivity {

    @BindView(R.id.img_back)
    ImageView imgBack;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_error)
    TextView tvError;
    @BindView(R.id.bt_confirm)
    Button btConfirm;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pre_autho_fail);
        ButterKnife.bind(this);
        tvTitle.setText("退款失败");
        tvError.setText(getIntent().getStringExtra("error_msg"));
    }

    @OnClick({R.id.img_back, R.id.bt_confirm})
    public void onViewClicked(View view) {
        switch(view.getId()) {
            case R.id.img_back:
                finish();
                break;
            case R.id.bt_confirm:
                finish();
                break;
        }
    }
}
